package com.twt.recruit.service;

import com.twt.recruit.entity.Answer;
import com.twt.recruit.mapper.AnswerMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class AnswerService {

    @Resource
    AnswerMapper answerMapper;

    public List<Answer> getAnswerByProjectId(Integer projectId) {
        return answerMapper.getAnswerByProjectId(projectId);
    }

    public void delAnswerByProjectId(Integer projectId) {
        answerMapper.delAnswerByProjectId(projectId);
    }

    public void delAnswerOptionByAnswerId(List<Integer> answerIdList) {
        answerMapper.delAnswerOptionByAnswerId(answerIdList);
    }
}
